<!doctype html>
<html ng-app="MyCSSModule">

<head>
    <meta charset="utf-8">
</head>

<body>
    <div ng-controller='DeathrayMenuController'>
        <button ng-click='toggleMenu()'>Toggle Menu</button>
        <ul ng-show='menuState.show'>
            <li ng-click='stuns()'>Stun{{stun}}</li>
            <li ng-click='disintegrate()'>Disintegrate</li>
            <li ng-click='erase()'>Erase from history</li>
        </ul>
        <div/>
</body>
<script src="js/angular-1.3.0.js"></script>
<script>
var myCSSModule = angular.module('MyCSSModule', []);
myCSSModule.controller('DeathrayMenuController', ['$scope', function($scope) {
        $scope.menuState = { show: false };
        $scope.stun = '';
        $scope.toggleMenu = function() {
            $scope.menuState.show = !$scope.menuState.show;
        };
        $scope.stuns = function() {
            console.log($scope.stun);
            if ($scope.stun == '') {
                $scope.stun = '123';
            } else {
                $scope.stun = '';
            }
        };
    }

])
</script>

</html>